package com.czy.owner.entity;

import java.util.List;

/**
 * Created by King on 2017-05-25
 */

public class MaintenanceManual {

    /**
     * models : [{"superModelsId":0,"modelsName":"大保养","modelsLogo":"","sort":11,"modelsId":21,"status":"enable"},{"superModelsId":0,"modelsName":"小保养","modelsLogo":"","sort":3,"modelsId":29,"status":"enable"}]
     * timeMileage : [{"timeMileageId":24,"time":3,"sort":1,"timeMileageName":"低端","mileage":5000},{"timeMileageId":25,"time":6,"sort":2,"timeMileageName":"低端","mileage":8000},{"timeMileageId":26,"time":8,"sort":3,"timeMileageName":"低端","mileage":12000},{"timeMileageId":27,"time":10,"sort":4,"timeMileageName":"低端","mileage":15000},{"timeMileageId":28,"time":12,"sort":5,"timeMileageName":"低端","mileage":20000},{"timeMileageId":29,"time":15,"sort":6,"timeMileageName":"低端","mileage":25000},{"timeMileageId":30,"time":18,"sort":7,"timeMileageName":"低端","mileage":30000}]
     * manualName : 通用手册 - 不要删除
     * type : general
     * maintenanceManualId : 11
     * timeMileageName : 低端
     * point : [{"timeMileageId":24,"manualPointId":31,"maintenanceManualId":11,"modelsId":21},{"timeMileageId":25,"manualPointId":32,"maintenanceManualId":11,"modelsId":29},{"timeMileageId":27,"manualPointId":33,"maintenanceManualId":11,"modelsId":21},{"timeMileageId":30,"manualPointId":34,"maintenanceManualId":11,"modelsId":29}]
     */

    private String manualName;
    private String type;
    private int maintenanceManualId;
    private String timeMileageName;
    private List<ModelsBean> models;
    private List<TimeMileageBean> timeMileage;
    private List<PointBean> point;

    public String getManualName() {
        return manualName;
    }

    public void setManualName(String manualName) {
        this.manualName = manualName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getMaintenanceManualId() {
        return maintenanceManualId;
    }

    public void setMaintenanceManualId(int maintenanceManualId) {
        this.maintenanceManualId = maintenanceManualId;
    }

    public String getTimeMileageName() {
        return timeMileageName;
    }

    public void setTimeMileageName(String timeMileageName) {
        this.timeMileageName = timeMileageName;
    }

    public List<ModelsBean> getModels() {
        return models;
    }

    public void setModels(List<ModelsBean> models) {
        this.models = models;
    }

    public List<TimeMileageBean> getTimeMileage() {
        return timeMileage;
    }

    public void setTimeMileage(List<TimeMileageBean> timeMileage) {
        this.timeMileage = timeMileage;
    }

    public List<PointBean> getPoint() {
        return point;
    }

    public void setPoint(List<PointBean> point) {
        this.point = point;
    }

    public static class ModelsBean {
        /**
         * superModelsId : 0
         * modelsName : 大保养
         * modelsLogo :
         * sort : 11
         * modelsId : 21
         * status : enable
         */

        private int superModelsId;
        private String modelsName;
        private String modelsLogo;
        private int sort;
        private int modelsId;
        private String status;

        public int getSuperModelsId() {
            return superModelsId;
        }

        public void setSuperModelsId(int superModelsId) {
            this.superModelsId = superModelsId;
        }

        public String getModelsName() {
            return modelsName;
        }

        public void setModelsName(String modelsName) {
            this.modelsName = modelsName;
        }

        public String getModelsLogo() {
            return modelsLogo;
        }

        public void setModelsLogo(String modelsLogo) {
            this.modelsLogo = modelsLogo;
        }

        public int getSort() {
            return sort;
        }

        public void setSort(int sort) {
            this.sort = sort;
        }

        public int getModelsId() {
            return modelsId;
        }

        public void setModelsId(int modelsId) {
            this.modelsId = modelsId;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }
    }

    public static class TimeMileageBean {
        /**
         * timeMileageId : 24
         * time : 3
         * sort : 1
         * timeMileageName : 低端
         * mileage : 5000
         */

        private int timeMileageId;
        private int time;
        private int sort;
        private String timeMileageName;
        private long mileage;

        public int getTimeMileageId() {
            return timeMileageId;
        }

        public void setTimeMileageId(int timeMileageId) {
            this.timeMileageId = timeMileageId;
        }

        public int getTime() {
            return time;
        }

        public void setTime(int time) {
            this.time = time;
        }

        public int getSort() {
            return sort;
        }

        public void setSort(int sort) {
            this.sort = sort;
        }

        public String getTimeMileageName() {
            return timeMileageName;
        }

        public void setTimeMileageName(String timeMileageName) {
            this.timeMileageName = timeMileageName;
        }

        public long getMileage() {
            return mileage;
        }

        public void setMileage(long mileage) {
            this.mileage = mileage;
        }
    }

    public static class PointBean {
        /**
         * timeMileageId : 24
         * manualPointId : 31
         * maintenanceManualId : 11
         * modelsId : 21
         * "status": "enable"
         * isEmpty
         */

        private int timeMileageId;
        private int manualPointId;
        private int maintenanceManualId;
        private int modelsId;
        private boolean isRequired;
        private String status;
        private String isEmpty;

        public int getTimeMileageId() {
            return timeMileageId;
        }

        public void setTimeMileageId(int timeMileageId) {
            this.timeMileageId = timeMileageId;
        }

        public int getManualPointId() {
            return manualPointId;
        }

        public void setManualPointId(int manualPointId) {
            this.manualPointId = manualPointId;
        }

        public int getMaintenanceManualId() {
            return maintenanceManualId;
        }

        public void setMaintenanceManualId(int maintenanceManualId) {
            this.maintenanceManualId = maintenanceManualId;
        }

        public int getModelsId() {
            return modelsId;
        }

        public void setModelsId(int modelsId) {
            this.modelsId = modelsId;
        }

        public boolean isRequired() {
            return isRequired;
        }

        public void setRequired(boolean required) {
            isRequired = required;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String isEmpty() {
            return isEmpty;
        }

        public void setEmpty(String empty) {
            isEmpty = empty;
        }

        @Override
        public boolean equals(Object obj) {
            if(!(obj instanceof PointBean)){
                return false;
            }
            PointBean pointBean = (PointBean) obj;
            return modelsId == pointBean.modelsId && timeMileageId == pointBean.timeMileageId;
        }

        @Override
        public String toString() {
            return "PointBean{" +
                    "timeMileageId=" + timeMileageId +
                    ", manualPointId=" + manualPointId +
                    ", maintenanceManualId=" + maintenanceManualId +
                    ", modelsId=" + modelsId +
                    ", isRequired=" + isRequired +
                    '}';
        }
    }
}
